cursor_style = function(idObjectCursor)
{
	this.objCursor = $(idObjectCursor);
	
	this.removeAllClass = function() {
		this.objCursor.removeClass('panCursor zoomCursor identifyCursor measureCursor');
	};
	
	this.panAction = function() {
		this.removeAllClass();
		this.objCursor.addClass('panCursor');
	};
	
	this.zoomAction = function() {
		this.removeAllClass();	
		this.objCursor.addClass('zoomCursor');	
	};
	
	this.identifyAction = function() {
		this.removeAllClass();		
		this.objCursor.addClass('identifyCursor');
	};
	
	this.measureAction = function() {
		this.removeAllClass();		
		this.objCursor.addClass('measureCursor');
	};
	
	this.editAction = function() {
		this.removeAllClass();	
		this.objCursor.addClass('zoomCursor');	
	};
};

var cursorMap = new cursor_style('#map');